package view;


import javafx.geometry.Side;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Tab;
import javafx.scene.control.TabPane;
import javafx.scene.layout.FlowPane;

public class CenarioInicial {

    public Scene test() {
               
       Group root = new Group();
       FlowPane flowPane = new FlowPane();
       final TabPane tabPane = new TabPane();
       
       tabPane.setPrefSize(800, 600);
       tabPane.setSide(Side.TOP);
       tabPane.setTabClosingPolicy(TabPane.TabClosingPolicy.UNAVAILABLE);
       
       //tab Home
       final Tab tab_home = new Tab();
       tab_home.setText("Home");
       tab_home.setContent(new TelaInicial().criaTela());
       
       //tab Alunos
       final Tab tab_alunos = new AlunoAba();
       tab_alunos.setText("Alunos");
       //tab_alunos.setContent(new TelaAluno().criaTela());
       

       //tab Turmas
       final Tab tab_turmas = new Tab();
       tab_turmas.setText("Lazer");
       tab_turmas.setContent(new TelaLazer().criaTela());
       
       
       tabPane.getTabs().addAll(tab_home, tab_alunos, tab_turmas);
       
       flowPane.getChildren().add(tabPane);
       flowPane.resize(800, 600);
       root.getChildren().add(flowPane);
        
       return new Scene(root);
    }
}

